import commonService from 'service/common'
export default {
    async createCase(data) {
        let dataObj = Object.assign({
            "connId": '',
            "baseLevel": '',
            "content": "",
            "creatorGroupId": "",
            "creatorGroupName": "",
            "creatorName": "",
            "creatorNo": "",
            "customerName": "",
            "levelFour": "",
            "levelOne": "",
            "levelThree": "",
            "levelTwo": "",
            "stuId": "",
            "stuName": "",
            "telNo": "",

        }, data)

        let paramsJson = {
            method: 'post',
            url: 'issue/case',
            data: dataObj
        }
        let jsondata = await commonService.asyncFetchData(paramsJson)
        return jsondata
    },
    //根据callid得到小结
    getCaseListByCallId(data) {
        let dataObj = Object.assign({
            "connId": ''
        }, data)

        let paramsJson = {
            method: 'get',
            url: 'issue/case',
            data: dataObj
        }
        return commonService.syncAjax(paramsJson)

    }
}